number = 42

def print_number():
    print(number)

def read_and_change():
    print(number)
    number = 0

print_number()
try:
    read_and_change() 
except UnboundLocalError as e:
    print(e)
print_number()

